using UnityEngine;
using System.Collections;

public class FailHard : MonoBehaviour {

	public GameObject Platform1;
	public GameObject Platform2;
	public GameObject Platform3;
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () 
	{
		/*if(Platform1 == false && Platform2 == false && Platform3 == false)
		{
			Application.LoadLevel(4);// for game over screen
		}*/
	}
	
	void OnCollisionEnter(Collision collision)
	{
		if( Platform1 == true)
		{
			Object.Destroy(Platform1);
			
		}
		if(Platform1 == false && Platform2 == true)
		{
			Object.Destroy(Platform2);
			
		}
		if(Platform1 == false && Platform2 == false && Platform3 == true)
		{
			Object.Destroy(Platform3);
			
		}
		
	}


}